From: Brion Vibber Date: Thu, 23 Sep 2004 00:45:49 +0000 (+0000) Subject: Cleaning up checkin conflict: remove Wil's parserTransform() function as X-Git-Tag: 1.5.0alpha1~1867 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=5c451dde19d4b2f13954ce91944384d317913bd0;p=lhc%2Fweb%2Fwiklou.git Cleaning up checkin conflict: remove Wil's parserTransform() function as this is superceded by setting the globals to a known initial state. --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 8028c83dd9..96f5e53dd4 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -65,7 +65,7 @@ class ParserTest { if( $this->runTest( rtrim( $data['test'] ), rtrim( $data['input'] ), - $this->resultTransform(rtrim( $data['result'] ) ) ) ) { + rtrim( $data['result'] ) ) ) { $success++; } $total++; @@ -89,19 +89,6 @@ class ParserTest { } } - /** - * Substitute simple variables to allow for slightly more - * sophisticated tests. - * @access private - */ - function resultTransform($text) { - $rep = array ( - '__SCRIPT__' => $GLOBALS['wgScript'] - ); - $text = str_replace(array_keys($rep), array_values($rep), $text); - return $text; - } - /** * @param string $input Wikitext to try rendering * @param string $result Result to output